	<!-- Student's current academic information. -->
	<?php
		echo "<b>Academic Information of </b>" . $stdno;
		echo "</br></br>";
	?> 
	
	<!-- Assumption: The following fields will not be shown if it is Null. -->
<table>
	<tr><td>
	<?php 
		if($curriculum != NULL){
			echo "<b>Curriculum: </b>" . $curriculum;
			echo "</br>";
		}
	?>
	</td></tr>
	<tr><td>
	<?php 
		if($reg_adviser != NULL){
			echo "<b>Registration Adviser: </b>" . $reg_adviser;
			echo "</br>";
		}
	?>
	</td></tr>
	<tr><td>
	<?php 
		if($sp_adviser != NULL){
			echo "<b>Special Problem Adviser: </b>" . $sp_adviser;
			echo "</br></br>";
		}
	?>
	</td></tr>
</table>
<table><tr><td>
	<?php 
		if($approved_ge != NULL){
			echo "<b>List of Approved GE Courses: </b>";
			foreach ($approved_ge as $item)
				echo "<br/>" . $item;
		}
	?>
</td></tr></table>
</br>
<table><tr><td>	
	<?php
		if($approved_electives != NULL){
			echo "<b>List of Approved Electives: </b>";
			foreach ($approved_electives as $item)
			echo "<br/>" . $item;
		}
	?>
</td></tr></table>
</br>
<table><tr><td>
	<?php
		if($subjects_taken != NULL){
			echo "<b>List of Subjects Taken: </b></br>";
			echo "<table border=1px width=650 align=left cellpadding=4 cellspacing=0>";
			echo "<tr>";
			echo "<td width=5% align=center>Course Number</td>";
			echo "<td width=5% align=center>Units</td>";
			echo "<td width=5% align=center>Grade</td>";
			echo "<td width=5% align=center>Sem/Summer</td>";
			echo "<td width=5% align=center>Year</td>"; 
			echo "<td width=5% align=center>Type</td>"; 
			echo "</tr>";
			
			foreach ($subjects_taken as $item){
				echo "<tr>";
				echo "<td width=5% align=center>" . $item['course_no_fk'] . "</td>";
				echo "<td width=5% align=center>" . $item['units'] . "</td>";
				echo "<td width=5% align=center>" . $item['grade'] . "</td>";
				echo "<td width=5% align=center>" . $item['sem'] . "</td>";
				echo "<td width=5% align=center>" . $item['year'] . "</td>";
				echo "<td width=5% align=center>" . $item['type'] . "</td>";
				echo "</tr>";
			}
			echo "</table>";
		}	
	?>
</td></tr></table>
</br>
<table><tr><td>
	<?php
		if($academic_history != NULL){
			echo "<b>Academic History: </b></br>";
			echo "<table border=1px width=650 align=left cellpadding=4 cellspacing=0>";
			echo "<tr>";
			echo "<td width=5% align=center>Semester</td>";
			echo "<td width=5% align=center>Year</td>";
			echo "<td width=5% align=center>GWA</td>";
			echo "<td width=5% align=center>Standing</td>";
			echo "</tr>";
	
			foreach ($academic_history as $item){
				echo "<tr>";
				echo "<td width=5% align=center>" . $item['sem'] . "</td>";
				echo "<td width=5% align=center>" . $item['year'] . "</td>";
				echo "<td width=5% align=center>" . $item['gwa'] . "</td>";
				echo "<td width=5% align=center>" . $item['standing'] . "</td>";
				echo "</tr>";
			}
			echo "</table>";
		}
	?>
</td></tr></table>
</br>
<table><tr><td>
	<?php 
		if($cases != NULL){
			echo "<b>List of University Cases: </b></br>";
			echo "<table border=1px width=650 align=left cellpadding=4 cellspacing=0>";
			echo "<tr>";
			echo "<td width=5% align=center>Case Description</td>";
			echo "<td width=5% align=center>Date</td>";
			echo "</tr>";
			
			foreach ($cases as $item){
				echo "<tr>";
				echo "<td width=5% align=center>" . $item['case_description'] . "</td>";
				echo "<td width=5% align=center>" . $item['date'] . "</td>";
				echo "</tr>";
			}
			echo "</table>";
		}
	?>
</td></tr></table>
</br>
	<!-- End of View-->
	
	<!-- Menus of Side Bar -->
	<?php echo anchor('encoder/loadCurriculumAndAdvisers/','Change Curriculum and Advisers');?>
	</br>
	<?php echo anchor('encoder/loadGEplan/','Change GE Plan');?>
	</br>
	<?php echo anchor('encoder/loadElectives/','Change List of Electives');?>
	</br>
	<?php echo anchor('encoder/loadSubjectsTaken/','Courses Taken');?>
	</br>
	<?php echo anchor('encoder/loadCases/','University Cases');?>
	</br></br>
	
	<!-- End of Menus for Side Bar -->
	
	<?php echo anchor('encoder/index','Back to Home Page');?> </br>
	<?php echo anchor('encoder/logout','Logout');?>
	